package com.wj.blog.config;

import com.wj.blog.utils.IdWorker;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * Author:   wj
 * Date:     2020/4/9 15:48
 * Description: 将一些实体类放到容器中
 */
@Configuration
public class BeanConfig {
    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
